package com.ysd.lis.controller.eq;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.eq.EqPatrolTaskEq;
import com.ysd.lis.request.CommonPageDto;
import com.ysd.lis.service.eq.EqPatrolTaskEqService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 巡检记录设备 前端控制器
 * </p>
 *
 * @author WH
 * @since 2024-08-15
 */
@RestController
@RequestMapping("/api/eq/patrolTaskEq")
public class EqPatrolTaskEqController extends BaseController {

    @Autowired
    private EqPatrolTaskEqService eqPatrolTaskEqService;
    @ApiOperation("查询巡检记录设备")
    @GetMapping("/findPatrolTaskEqList")
    public Result findPatrolTaskEqList(EqPatrolTaskEq eqPatrolTaskEq){
        return eqPatrolTaskEqService.findPatrolTaskEqList(eqPatrolTaskEq);
    }

    @ApiOperation("查询巡检记录通过设备id")
    @GetMapping("/findPatrolTaskByEqId")
    public Result findPatrolTaskByEqId(EqPatrolTaskEq eqPatrolTaskEq){
        return eqPatrolTaskEqService.findPatrolTaskByEqId(eqPatrolTaskEq);
    }

}
